<template>
  <div class="q-pa-md q-gutter-sm">
    <t-carousel animated v-model="slide" infinite>
      <t-carousel-slide name="soft-jazz">
        <t-video
          class="absolute-full"
          src="https://www.youtube.com/embed/k3_tw44QsZQ"
        />
      </t-carousel-slide>

      <t-carousel-slide name="Rihanna">
        <t-video
          class="absolute-full"
          src="https://www.youtube.com/embed/kOkQ4T5WO9E"
        />
      </t-carousel-slide>

      <t-carousel-slide name="ibiza">
        <t-video
          class="absolute-full"
          src="https://www.youtube.com/embed/p87miJIYEEk"
        />
      </t-carousel-slide>
    </t-carousel>

    <div class="row justify-center">
      <t-btn-toggle
        glossy
        v-model="slide"
        :options="[
          { label: 'Soft Jazz', value: 'soft-jazz' },
          { label: 'Rihanna', value: 'Rihanna' },
          { label: 'Ibiza Mix', value: 'ibiza' },
        ]"
      />
    </div>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        slide: ref('Rihanna'),
      };
    },
  };
</script>
